|
Quaqua 3.9.5 2007-10-21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
ch.randelshofer.quaqua.QuaquaLabelUI
public class QuaquaLabelUI
QuaquaLabelUI.
| Field Summary | |
|---|---|
protected static QuaquaLabelUI |
labelUI
|
| Fields inherited from interface ch.randelshofer.quaqua.VisuallyLayoutable |
|---|
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS |
| Constructor Summary | |
|---|---|
QuaquaLabelUI()
|
|
| Method Summary | |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Preferred spacing between labels and other components. |
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the baseline can not be determined. |
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the visual bounds can not be determined. |
protected void |
installDefaults(javax.swing.JLabel b)
|
protected java.lang.String |
layoutCL(javax.swing.JLabel label,
java.awt.FontMetrics fontMetrics,
java.lang.String text,
javax.swing.Icon icon,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR)
Forwards the call to SwingUtilities.layoutCompoundLabel(). |
void |
paint(java.awt.Graphics gr,
javax.swing.JComponent c)
|
protected void |
paintDisabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY)
Paint label with disabled text color. |
| Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
|---|
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installListeners, installUI, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static QuaquaLabelUI labelUI
| Constructor Detail |
|---|
public QuaquaLabelUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults(javax.swing.JLabel b)
installDefaults in class javax.swing.plaf.basic.BasicLabelUI
public void paint(java.awt.Graphics gr,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicLabelUI
protected void paintDisabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY)
paintDisabledText in class javax.swing.plaf.basic.BasicLabelUIpaint(java.awt.Graphics, javax.swing.JComponent),
BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
protected java.lang.String layoutCL(javax.swing.JLabel label,
java.awt.FontMetrics fontMetrics,
java.lang.String text,
javax.swing.Icon icon,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR)
layoutCL in class javax.swing.plaf.basic.BasicLabelUISwingUtilities.layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)
public int getBaseline(javax.swing.JComponent c,
int width,
int height)
VisuallyLayoutable
getBaseline in interface VisuallyLayoutablec - JComponent to calculate baseline forwidth - Width of the component to determine baseline for.height - Height of the component to determine baseline for.
public java.awt.Rectangle getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
VisuallyLayoutable
getVisualBounds in interface VisuallyLayoutablec - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the component
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||